import { Hono } from "hono";
import { cors } from "hono/cors";
import posts from "./routes/posts";
const app = new Hono();

app.use(cors());

app.get("/", (c) => {
  return c.text("Hello Hono!");
});

const routes = app.route("/posts", posts);

export type AppType = typeof routes;
export default app;
